
import Relay from "react-relay";
export default class AddOrEditProWorkGroupMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { addOrEditProWorkGroup }`;
    }

    getVariables() { 
        return {
            argsInput: {
                workShopId: this.props.workShopId,//车间ID
                workGroupId: this.props.workGroupId,//班组ID
                groupType: this.props.groupType,//班组类型
                name: this.props.name,//班组名称
                workerNum: this.props.workerNum,//工人数量
                enterpriseId: this.props.enterpriseId,//企业ID
                operateUser: this.props.operateUser,//操作人名称-登录用户名称
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on addOrEditProWorkGroupPayload  {
            addOrEditProWorkGroup {
                errorCode
                value
                totalResult
                id
                
               
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on addOrEditProWorkGroupPayload  {
                    addOrEditProWorkGroup {
                        errorCode
                        value
                        totalResult
                        id
                        
                    }
                 }
            `]
        }];
    }

}
